import { request } from "@/utils/http"

/**
 * 获取微信支付参数
 * @param data orderId 订单id
 */
export const getPayWxPayMiniPayAPI = (data: { orderId: string }) => {
    return request<WechatMiniprogram.RequestPaymentOption>({
      method: 'GET',
      url: '/pay/wxPay/miniPay',
      data,
    })
  }
  
  /**
   * 模拟支付-内测版
   * @param data orderId 订单id
   */
  export const getPayMockAPI = (data: { orderId: string }) => {
    return request({
      method: 'GET',
      url: '/pay/mock',
      data,
    })
  }